Page({

  /**
   * 页面的初始数据
   */
  data: {
    background: ['demo-text-1', 'demo-text-2', 'demo-text-3'],
    indicatorDots: true,
    vertical: false,
    autoplay: true,
    interval: 2000,
    duration: 500,



    isShowBulletBox:false,
    bulletBoxData:{
      text:""
    },
    functionList:[
      {
        text:"A",
        name:"gem"
      },
      {
        text:"B",
        name:"gift"
      },
      {
        text:"C",
        name:"point-gift"
      },
      {
        text:"D",
        name:"send-gift"
      },
      {
        text:"E",
        name:"service"
      },
      {
        text:"F",
        name:"bag"
      },
      {
        text:"G",
        name:"todo-list"
      },
      {
        text:"H",
        name:"balance-list"
      },
      {
        text:"I",
        name:"music"
      },
      {
        text:"J",
        name:"smile"
      },
    ],
    bottomList:[
      {
        text:"工作",
        name:"records"
      },
      {
        text:"助手",
        name:"phone-o"
      },
      {
        text:"常用",
        name:"add"
      },
      {
        text:"分析",
        name:"chart-trending-o"
      },
      {
        text:"我",
        name:"user-circle-o"
      }
    ],

    showpopup:true

  },

  bulletBoxClick: function(e) {
    // e.currentTarget.dataset.title
    let isShowBulletBox = !isShowBulletBox
    this.setData({
      isShowBulletBox:isShowBulletBox,
    })
    let bulletBoxObj = {}
    bulletBoxObj.text = e.currentTarget.dataset.title.text
    this.setData({
      bulletBoxData:bulletBoxObj,
    })
  },
  getContainer: function() {
    return document.querySelector('.container-wrap');
  },
  closeBulletBox: function () {
    let isShowBulletBox = false

    this.setData({
      isShowBulletBox,
    })
  },



  changeIndicatorDots() {
    this.setData({
      indicatorDots: !this.data.indicatorDots
    })
  },

  changeAutoplay() {
    this.setData({
      autoplay: !this.data.autoplay
    })
  },

  intervalChange(e) {
    this.setData({
      interval: e.detail.value
    })
  },

  durationChange(e) {
    this.setData({
      duration: e.detail.value
    })
  },








  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    
  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {
    
  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {
    
  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function () {
    
  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function () {
    
  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function () {
    
  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {
    
  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {
    return {
      title: 'swiper',
      path: 'page/component/pages/swiper/swiper'
    }
  }
})

